#include "trackweldendinstructionlogic.h"
#include "GeneralDefine.h"
#include "programengine.h"
#include "messagelog.h"
TrackWeldEndInstructionLogic::TrackWeldEndInstructionLogic(QString configFilePathIn, int robotIdIn, ProgramSet *programSetIn,
                                                           RobotIo *ioControllerIn, ProgramEngine *programEngineIn)
{
    programSet=programSetIn;
    robotId=robotIdIn;
    ioController=ioControllerIn;
    programEngine=programEngineIn;
    configFilePath=configFilePathIn;
}

E_PROGRAM_LOOP_RESULT TrackWeldEndInstructionLogic::startTrackWeldEnd(int programNum, TrackWeldEndInstruction trackWeldEndInstruct)
{
     qDebug()<<"startTrackWeldEnd";
     programEngine->calculateNextLineToRun(programNum);

     return programEngine->isTheLastInstruction(programNum);
}
